class Solution
{
public:
    int findLengthOfLCIS(vector<int> &nums)
    {
        int maxLen = 1;
        int current = nums[0];
        int currentLen = 1;
        for (int i = 1; i < nums.size(); ++i)
        {
            if (nums[i] > current)
            {
                ++currentLen;
                if (currentLen > maxLen)
                {
                    maxLen = currentLen;
                }
            }
            else
            {
                currentLen = 1;
            }
            current = nums[i];
        }
        return maxLen;
    }
};